  /**
   * Generate time : 2011-12-15 11:16:03
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCEClassManagement 
 * table comment : 设备分类主管 
 */
public class ZMCEClassManagement extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdEquipmentClassId = " ";		/* 设备分类ID*/
	private String fdDepartmentId = " ";		/* 部门ID*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentClassId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("设备分类ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("部门ID");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCEClassManagement() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdEquipmentClassId - 设备分类ID
	 * @return the fdEquipmentClassId
	 */
	public String getFdEquipmentClassId() {
		return this.fdEquipmentClassId;
	}
	
	/**
	 * set the fdEquipmentClassId - 设备分类ID
	 */
	public void setFdEquipmentClassId(String fdEquipmentClassId) {
		this.fdEquipmentClassId = fdEquipmentClassId;
	}
	
	/**
	 * get the fdDepartmentId - 部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdEquipmentClassId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentClassId")), fdEquipmentClassId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdEquipmentClassId",StringUtils.toString(fdEquipmentClassId, eiMetadata.getMeta("fdEquipmentClassId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			
		return map;
	
	}
}